import pygame,sys
import testClass

pygame.init()

if (__name__ == "__main__"):

    size = 320,240

    black = 0,0,0
    
    screen = pygame.display.set_mode(size)
    
    dispObj = testClass.DisplayObj(pygame.image.load("ball.bmp"),screen)
    
while 1:
    
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            sys.exit()


    screen.fill(black)
    dispObj.Display()
#    screen.blit(dispObj.Image, dispObj.ObjRect)
    pygame.display.flip()


    pygame.time.delay(500)
